#!/bin/bash
# Upload all JSON files
#

Type="weapon"
Files=(*.json)

for file in "${Files[@]}"
do
    echo "Uploading ${file}"
    curl -i -H "Content-Type: application/json" -X POST --data \@${file} http://localhost:8999/api/${Type}.add
done
